﻿@using FastReport
@using FastReport.Web
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section styles{

    @WebReportGlobals.Scripts()
    @WebReportGlobals.Styles()

    <style type="text/css">
        html > /**/ body .container {
            margin: 0;
            max-width: 100%;
        }

        #report-wrapper .frtoolbar {
            width: 100%;
        }

        #report-wrapper #frbody {
            text-align: center;
        }

            #report-wrapper #frbody > div {
                margin: 0 auto;
            }

        html > /**/ body #report-wrapper span > div > div {
            display: block;
            text-align: center;
        }
    </style>
}

<div>
    <div>
        <button class="bures1" style="background-color:red">防伪码</button>
        <button class="bures">标签码</button>
    </div>
    <div id="report-wrapper" class="Fang">
        @ViewBag.WebReports.GetHtml()
    </div>
    <div class="biaoQ" style="display:none">
        @ViewBag.WebReport.GetHtml()
    </div>
    <label id="jisnd">@ViewBag.JINF</label>
    <img src="~/fonts/SharedScreenshot.jpg" alt="Alternate Text" style="position: absolute; top: 115px; left:235px;display:none" class="JINHJJHHHHJJ" /><img src="~/fonts/SharedScreehot_精灵看图.jpg" alt="Alternate Text" style=" position: absolute; top: 130px; left: 225px; width: 810px; height: 50px;display:none" class="uuujh" />
</div>

<input type="button" onclick="window.history.go(-1)" value="返回" />

@section scripts{
    <script>
        $(function () {
            $(document).on("click", ".bures", function () {
                $(".Fang").hide()
                $(".biaoQ").show()
                if ($("#jisnd").text() == "A") {
                     $(".uuujh").show()
                } else {
                     $(".JINHJJHHHHJJ").show()
                }
                $(".bures1").css("background-color", "#fff")
                $(this).css("background-color", "red")
            })
            $(".bures1").click(function () {
                $(".Fang").show()
                $(".biaoQ").hide()
                $(".bures").css("background-color", "#fff")
                $(".JINHJJHHHHJJ,.uuujh").hide()
                $(this).css("background-color", "red")
            })
        })
    </script>
} 